﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DeviceMaintainGIS.Model.Document
{
    /// <summary>
    /// 资料信息
    /// </summary>
    public class DocumentModel
    {
        /// <summary>
        /// 资料ID
        /// </summary>
        public string DocumentId { get; set; }
        /// <summary>
        /// 资料类型ID
        /// </summary>
        public string DocumentTypeId { get; set; }
        /// <summary>
        /// 资料类型名称
        /// </summary>
        public string DocumentTypeName { get; set; }
        /// <summary>
        /// 资料名
        /// </summary>
        public string DocumentName { get; set; }
        /// <summary>
        /// 资料路径
        /// </summary>
        public string Path { get; set; }
        /// <summary>
        /// 资料下载路径
        /// </summary>
        public string DownloadUrl { get; set; }
        /// <summary>
        /// 是否保密
        /// </summary>
        public string IsSecrecy { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get; set; }
        /// <summary>
        /// 查询类型 1项目2基站3设备
        /// </summary>
        public int Type { get; set; }
        /// <summary>
        /// 类型ID
        /// </summary>
        public string LPDId { get; set; }

    }
    //资料类型表
    public class DocumentTypeModel
    {
        /// <summary>
        /// 类型id
        /// </summary>
        public string DocumentTypeId { get; set; }
        /// <summary>
        /// 类型名称
        /// </summary>
        public string DocumentType { get; set; }

    }

    //资源信息
    public class ResourcesModel
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// ID
        /// </summary>
        public string ID { get; set; }

        /// <summary>
        /// 存储关系json
        /// </summary>
        public string ResourcesJson { get; set; }

    }
    //资源信息
    public class DocumentRelationModel
    {
        /// <summary>
        /// 关系表ID
        /// </summary>
        public string DRelationId { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// ID
        /// </summary>
        public string ID { get; set; }

        /// <summary>
        /// 属性
        /// </summary>
        public string PropertyName { get; set; }

    }
    /// <summary>
    /// 临时存储关系属性
    /// </summary>
    public class TempModel
    {
        /// <summary>
        /// 类型ID
        /// </summary>
        public int Property { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// ID
        /// </summary>
        public string ID { get; set; }
    }

}
